<!-- 展示面板组件 -->
<template>
    <div class="home-panel">
      <div class="container">
        <div class="head">
          <h3>{{ title }}<small>{{ subTitle }}</small></h3>
          <!-- 查看更多插槽 -->
          <slot name="right" />
        </div>
        <!-- 默认插槽 -->
        <slot />
      </div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'HomePanel',
    props: {
      title: {
        type: String,
        default: ''
      },
      subTitle: {
        type: String,
        default: ''
      }
    }
  }
  </script>
  
  <style scoped lang='less'>
  .home-panel {
    background-color: #fff;
    .head {
      padding: 40px 0;
      display: flex;
      align-items: flex-end;
      h3 {
        flex: 1;
        font-size: 32px;
        font-weight: normal;
        margin-left: 6px;
        height: 35px;
        line-height: 35px;
        small {
          font-size: 16px;
          color: #999;
          margin-left: 20px;
        }
      }
    }
  }
  </style>
  